package application.game;

public class Cell{
	public String tile;
	public boolean hasBlock;
	public boolean isBlockTarget;
	public boolean isWalkable;
	public String texture;
	
	public Cell(){
		this.tile = "None";
		this.texture = "None";
		this.hasBlock = false;
		this.isBlockTarget = false;
		this.isWalkable = false;
	}
	
	public Cell(String tile, String texture, boolean hasBlock, boolean isBlockTarget, boolean isWalkable){
		this.tile = tile;
		this.texture = texture;
		this.hasBlock = hasBlock;
		this.isBlockTarget = isBlockTarget;
		this.isWalkable = isWalkable;
	}
	
	public String getSalvableString(){
		String result = "";
		
		result += "Tile: " + tile;
		result += "Has Block: " + Boolean.toString(hasBlock);
		result += "Is BlockTarget: " + Boolean.toString(isBlockTarget);
		result += "Is Walkable: " + Boolean.toString(isWalkable);
		result += "Texture: " + texture;
		
		return result;
	}
}
